import styled from "styled-components";

import sprite_01 from "@/assets/img/sprite_01.png";

export const HeaderWrapper = styled.div`
  height: 70px;
  background-color: #242424;

  .content {
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
  }

  .divicer {
    height: 5px;
    background-color: #c20c0c;
  }
`;

export const HeaderLeft = styled.div`
  display: flex;
  align-items: center;
  font-size: 14px;

  .logo {
    width: 176px;
    height: 69px;
    background-position: 0 0;
    text-indent: -9999px;
  }

  .headerLinks {
    a {
      display: inline-block;
      text-decoration: none;
      color: #fff;
      padding: 0 19px;
      text-align: center;
      line-height: 70px;
      height: 70px;
      position: relative;
    }
    a:last-of-type::after {
      content: "";
      display: block;
      position: absolute;
      top: 21px;
      left: 100px;
      width: 28px;
      height: 19px;
      background-position: -190px 0;
      background-image: url(${sprite_01});
    }
    a.active,
    a:hover {
      background: #000;
    }
    a.active::after {
      position: absolute;
      content: "";
      display: block;
      left: 50%;
      top: 64px;
      width: 12px;
      height: 7px;
      margin-left: -6px;
      overflow: hidden;
      background-position: -226px 0;
      background-image: url(${sprite_01});
    }
  }
`;

export const HeaderRight = styled.div`
  display: flex;
  align-items: center;

  .search {
    width: 158px;
    height: 32px;
    border-radius: 32px;
    input {
      font-size: 12px;
    }
  }

  .center {
    width: 90px;
    height: 32px;
    line-height: 32px;
    border-radius: 32px;
    border: 1px solid #4f4f4f;
    color: #ccc;
    text-align: center;
    margin-left: 12px;
    text-decoration: none;
  }

  .login {
    display: block;
    width: 28px;
    color: #787878;
    margin-left: 20px;
    cursor: pointer;
  }
`;
